/* 
	@desc 对跳转参数进行处理
 */

// 转成字符串
const utilEncodeURIComponentParams = (params)=>{
	return encodeURIComponent(JSON.stringify(params));
}

// 解析成对象
const utilDecodeURIComponentParams = (params)=>{
	return JSON.parse(decodeURIComponent(params));
}

export {
	utilEncodeURIComponentParams,
	utilDecodeURIComponentParams
}